﻿using System;
using System.Collections.Generic;
using System.Xml;

namespace BfLib.Web.RSS
{

    public class RSSItemSource
    {
        private string _url, _value;

        public RSSItemSource(XmlNode node)
        {
            if (node == null)
            {
                return;
            }

            if (node.Attributes["url"] != null)
            {
                this._url = node.Attributes["url"].Value;
            }

            this._value = node.Value;
        }

        public string Value
        {
            get { return _value; }
        }

        public string Url
        {
            get { return _url; }
        }
    }
}
